#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int count=0;
	int i, j;
	for (i = 0; i <= 100; i++)
	{
		int j = i;
		if (j % 10 == 9)
		{
			count++;
		}
		else
		{
			if (j / 10 == 9)
			{
				count++;
			}
		}
	}
		printf("%d\n", count);
	
	return 0;
}